MSGBOX flags

The flags parameter of the MSGBOX command/function can be a combination of the following values:

Flag Value Description
MB_OK 0x00 The message box contains one push button: OK. This is the default.
MB_OKCANCEL 0x01 The message box contains two push buttons: OK and Cancel.
MB_ABORTRETRYIGNORE 0x02 The message box contains three push buttons: Abort, Retry, and Ignore.
MB_YESNOCANCEL 0x03 The message box contains three push buttons: Yes, No, and Cancel.
MB_YESNO 0x04 The message box contains two push buttons: Yes and No.
MB_RETRYCANCEL 0x05 The message box contains two push buttons: Retry and Cancel.
MB_CANCELTRYCONTINUE 0x06 Microsoft« Windows« 2000/XP: The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead of MB_ABORTRETRYIGNORE.
 
MB_ICONHAND
MB_ICONERROR
MB_ICONSTOP
0x10 A stop-sign icon appears in the message box.
MB_ICONQUESTION 0x20 A question-mark icon appears in the message box.
MB_ICONEXCLAMATION
MB_ICONWARNING
0x30 An exclamation-point icon appears in the message box.
MB_ICONASTERISK
MB_ICONINFORMATION
0x40 An icon consisting of a lowercase letter i in a circle appears in the message box.
 
MB_DEFBUTTON1 0x00 The first button is the default button.
MB_DEFBUTTON2 0x0100 The second button is the default button.
MB_DEFBUTTON3 0x0200 The third button is the default button.
MB_DEFBUTTON4 0x0300 The fourth button is the default button.
 
MB_RIGHT 0x00080000 The text is right-justified.

top bottom
mirkes.de's Tiny Hexer, Copyright ⌐ Markus Stephany. All rights reserved.